// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 管理员添加合法的成果级别 管理员添加合法的成果级别 POST /valid-award-levels/addValidAwardLevels */
export async function postValidAwardLevelsAddValidAwardLevels(
  body: API.AddValidAwardLevelDTO,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseValidAwardLevels>(
    '/valid-award-levels/addValidAwardLevels',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 管理员根据有效成果id获取合法成果级别列表 管理员根据有效成果id获取合法成果级别列表 GET /valid-award-levels/getValidAwardLevelsList */
export async function getValidAwardLevelsGetValidAwardLevelsList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getValidAwardLevelsGetValidAwardLevelsListParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListGetValidAwardLevelDetailVO>(
    '/valid-award-levels/getValidAwardLevelsList',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
